<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>My JSP 'addReimburse.jsp' starting page</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script type="text/javascript" src="manage/js/jquery.js"></script>
		<script language="javascript" type="text/javascript" src="<%=basePath%>datemaker/WdatePicker.js"></script>
		<script type="text/javascript" src="manage/js/addbg.js"></script>
		<script type="text/javascript" src="<%=basePath%>manage/js/formreimburse.js"></script>
		<script type="text/javascript" src="dwr/engine.js">
</script>
		<script type="text/javascript" src="dwr/util.js">
</script>
		<script type="text/javascript" src="dwr/interface/checkStaffService.js">
</script>
		<link rel="stylesheet" type="text/css" href="manage/css/actionErrors.css"></link>
		<link rel="stylesheet" type="text/css" href="manage/css/addTravel.css" /></script>

	</head>
<center>
	<body>
		<s:form action="addReimburse" method="post" name="reimburse" onsubmit="return login()">
			<table>
			<thead>
				<tr>
					<th colspan="4" align="center" >报&nbsp;销&nbsp;登&nbsp;记</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>
						员&nbsp;工&nbsp;编&nbsp;号
					</td>
					<td>
						<s:textfield name="staffId" id="staffId" onblur="checkstaffId()"></s:textfield>
						<span><s:fielderror cssClass="errors">
								<s:param>staffIdError</s:param>
							</s:fielderror> </span>
						<span class="emphasize">*</span>
					</td>

					<td>
						类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型
					</td>
					<td>
						<s:select name="typeId" list="#{10:'办公用品',11:'业务费用',12:'招待费',4:'其他'}"
							label="类型" headerKey="" headerValue="==请选择==" value="" id="typeId"></s:select>
						<s:fielderror cssClass="errors">
							<s:param>typeError</s:param>
						</s:fielderror>
						<span class="emphasize">*</span>
					</td>
				</tr>
				<tr>
					<td>
						开&nbsp;始&nbsp;时&nbsp;间
					</td>
					<td>
						<input type="text" name="reimburse.start" class="Wdate" id="reimburseStar"
								onClick="WdatePicker()" />
						<s:fielderror cssClass="errors">
							<s:param>startError</s:param>
						</s:fielderror>
						<span class="emphasize">*</span>
					</td>
			
					<td>
						结&nbsp;束&nbsp;时&nbsp;间
					</td>
					<td>
						<input type="text" name="reimburse.end" class="Wdate" id="reimburseEnd"
								onClick="WdatePicker()" />
						<s:fielderror cssClass="errors">
							<s:param>endError</s:param>
						</s:fielderror>
						<s:fielderror cssClass="errors">
							<s:param>dateError</s:param>
						</s:fielderror>
						<span class="emphasize">*</span>
					</td>
				</tr>
				<tr>
					<td>
						报&nbsp;销&nbsp;金&nbsp;额
					</td>
					<td>
						<s:textfield name="reimburse.amount" id="reimburseAmount" onblur="return checkreimburseAmount()"></s:textfield>
						<s:fielderror cssClass="errors">
							<s:param>amountError</s:param>
						</s:fielderror>
						<span class="emphasize">*</span>
					</td>
				
					<td>
						是否需要上交发票
					</td>
					<td>
						<s:select name="handId" list="#{0:'否',1:'是'}" label="应交发票金额"
							headerKey="" headerValue="==请选择==" value="" id="handId"></s:select>
						<s:fielderror cssClass="errors">
							<s:param>handError</s:param>
						</s:fielderror>
						<span class="emphasize">*</span>
					</td>
				</tr>
				<tr>
					<td>
						应交发票金额
					</td>
					<td>
						<s:textfield name="reimburse.payable" id="reimburseAmountPayable" onblur="checkreimburseAmountPayable()"></s:textfield>
						<s:fielderror cssClass="errors">
							<s:param>payableError</s:param>
						</s:fielderror>
						<span class="emphasize">*</span>
					</td>
				
					<td>
						已经发票金额
					</td>
					<td>
						<s:textfield name="reimburse.paid" id="reimburseAmountPaid" onblur="return checkreimburseAmountPaid()"></s:textfield>
						<s:fielderror cssClass="errors">
							<s:param>paidError</s:param>
						</s:fielderror>
						<span class="emphasize">*</span>
					</td>
				</tr>
				<tr>
					<td >
						报&nbsp;销&nbsp;状&nbsp;态
					</td>
					<td >
						<s:select name="statusId" list="#{0:'未报销',1:'已报销'}" label="报销状态"
							headerKey="" headerValue="==请选择==" value=""></s:select>
						<s:fielderror cssClass="errors">
							<s:param>statusError</s:param>
						</s:fielderror>
						<span class="emphasize">*</span>
					</td>
					<td colspan="2">&nbsp;</td>
				</tr>
				</tbody>
				<tfoot>
				<tr>
					<td colspan="4" align="center" height="45px">
				 		<input class="submit" type="submit" value="提交"/>
				 		<input class="reset" type="reset" value="重置"/>
						<input class="return" type="button" value="返回" onclick="window.history.back();" />
					</td>
				</tr>
				</tfoot>
			</table>
		</s:form>
	</body>
	</center>
</html>
